import Login from '../views/login'
import Registry from '../views/registry'
import Main from '../views/main/index'
import ScoreManager from '../views/main/score-manager'
import StudentManager from '../views/main/student-manager'
import Person from '../views/main/person'
import Student from '../views/main/student'
import Teacher from '../views/main/teacher'
export default [
    {
        path:'/login',
        component:Login
    },
    {
        path:'/registry',
        component:Registry
    },
    {
        path:'/main',
        component:Main,
        children:[
            {
                path:'/main/scoremanager',
                component:ScoreManager
            },
            {
                path:'/main/studentmanager',
                component:StudentManager
            },
            {
                path:'/main/person',
                component:Person
            },
            {
                path:'/main/studentIndex',
                component:Student
            },
            {
                path:'/main/teacherIndex',
                component:Teacher
            },
            {
                path:'/main',
                redirect:'/main/teacherIndex'
            }
        ]
    },
    {
        path:'/',
        redirect:'/main'
    }
]